package cn.dgiot.fd.contant;

import java.util.Arrays;
import java.util.List;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@PropertySource(value = "classpath:reportProperty.properties")
public class ReportPropertiesConfig {
	
	/** 上报属性配置 */
	@Value("${properties}")
	public String properties;

	public List<String> getProperties() {
		String[] propertyArray = properties.split(",");
		List<String> propertyList = Arrays.asList(propertyArray);
		return propertyList;
	}

}
